<?php
$nid = $_GET['nId'];

$table = "user";
$result = mysql_query("select * from $table where nid='$nid'");
while ($row = mysql_fetch_array($result)) {
    $admin_user_id = $row['user_id'];
    $admin_user_name = $row['user_name'];
    $admin_user_term = $row['user_term'];
    $admin_department = $row['department'];
    $admin_balance = $row['balance'];
    $admin_account = $row['account'];
}
?>